package test.db.mysql.table;


public enum FriendTable implements Table {
    USER_SID(Column.userSid),
    TARGET_USER_SID(Column.targetUserSid);
    
    private final Column column;
    private static final String TYPE_USER_SID = "VARCHAR(20)";
    private static final String TYPE_TARGET_USER_SID = "VARCHAR(20)";

    FriendTable(Column column) {
        this.column = column;
    }
    
    private enum Column {
        userSid {
            String getType() {
                return TYPE_USER_SID;
            }
        },
        
        targetUserSid {
            String getType() {
                return TYPE_TARGET_USER_SID;
            }
        };
        
        abstract String getType();
    }
    
    public String getType() {
        return column.getType();
    }
    
    public void initData() throws Exception {
        System.out.println("FriendTable CALL NOW...");
    }
}